# -*- coding:utf-8 -*-

from pydantic import BaseModel
from fastapi import Depends, Request, HTTPException, status
from sqlalchemy.ext.asyncio import AsyncSession
from sqlalchemy.future import select
from sqlalchemy import func, and_, or_

from config.database import get_db, get_model_class_by_table_name, TbAssociation
from core.exceptions import ServiceException
from utils.dependence import PageFilter

from models.role import TbRole
from crud.base import BaseDao


class RoleDao(BaseDao):
    def __init__(self, db: AsyncSession = Depends(get_db)):
        self.db = db
        self.MODEL = TbRole
